{% include 'front/header.html' %}
<link rel="stylesheet" href="/resource/front/css/mobile/y-login.css" />
<script type="text/javascript" src="/resource/front/css/mobile/size.js"></script>
<script>
			function setFont() {
				var HTML = document.getElementsByTagName('html')[0];
				/*var dpr=1;//像素比
				var Size=document.documentElement.clientWidth*dpr/10;*/
				//把viewport视口分成10份的rem,html的font-size为1rem
				var Size = document.documentElement.clientWidth / 10;
				if(Size >= 60) {
					Size = 60
				}
				HTML.style.fontSize = Size + 'px';
			};
			setFont(); //初始适配
			window.onresize = function() { //窗口大小改变适配
				setFont();
			};
		</script>
<body>
	<div class="wallet-wrap" style="max-width: 600px; height: 100%; margin:0 auto ;position: relative;background: #fff !important;">
		<div class="" style="padding: 15px;">
			<div id="top-content"><div data-index="0" data-type="0" money="1" class="longtap"><img src="http://api.isxuan.com/uploads/20180517/nx_1526517920256.png"></div><div class=" left">新标题新标题新标题新标题新标题新标题新标题新标题新标题新标题新标题新标题新标题新标题新标题</div><div class="ql-snow" style="font-size: 12px;"><div money="2" style="white-space: pre-wrap" class="longtap richText ql-editor" id="texttrea2" data-key="2" data-type="2"><p>新富文本新富文本新富文本新<span class="ql-size-huge">富文本</span><span class="ql-size-huge" style="background-color: rgb(255, 194, 102);"> 说我</span></p></div></div><div style="background:#f42d64;height:20px;"></div><div style="background:#f42d64;height:20px;"></div><div class="longtap" money="3" data-key="6" data-type="5" id=""><p style="width: 100%;height:0.426666rem;line-height: 0.426666rem;margin-top:0.426666rem; margin-bottom: 10px;">拨打下方电话</p>
			<div class="" style="height: 0.426666rem;line-height: 0.426666rem; display: flex;align-items: center;">
				<a class="tel" style="display: inline-block;margin-left: 0.28rem;" href="tel://13251605555" tel="13251605555">
					13251605555  
				</a>
				<img class="tel" src="/resource/front/images/forward/call.png" style="width:  0.3rem; height: 0.3rem;margin-left: .11rem;">
			</div>
			
		</div><img class="longtap" money="5" id="qrcode" data-key="9" data-type="7" style="width:100%;" src="http://api.isxuan.com/uploads/20180517/nx_1526518100890.png"></div>
			<div id="" class="" style="padding: .15rem .19rem;">

				<div id="bottom-content"><div id="ly" money="4" class="longtap" data-type="6" data-key="8">
				<p style="margin-top: .07rem;word-break: break-all; font-size:px;">请留下您的联系方式，稍后我们的工作人员会联系您</p>
				<p style="margin-top:.11rem; font-size:px;"></p>
			</div></div>
				<div class="other" id="form" style="">
					<input field="name" required="true" errmsg="请输入姓名" style="margin-top: 0.213333rem; width:  45%;  padding-left: 5px;   font-size: 16px; border-color: #999; height: 0.16rem; " placeholder="姓名" type="text" class="mui-input-password" data-input-password="3">
					<input field="tel" required="true" errmsg="请输入电话" style="margin-top: 0.213333rem;  width:  45%; padding-left: 5px;border-color: #999;     font-size: 16px;height: 0.16rem;" type="number" placeholder="电话" class="mui-input-password" data-input-password="3">
					<textarea field="content" required="true" errmsg="请输入备注" style="width: 100%; height: 1.866666rem;font-size: 0.16rem;     font-size: 16px; border-color: #999; " name="" rows="" cols="" placeholder="备注"></textarea>
					<input type="button" id="submit" value="提交" style="margin-top: 19px;width: 100%;background-color: #3f81f7;border-color: #3f81f7;border-radius: 2px;">
				</div>
			</div>
			<div class="js_dialog" style="opacity: 1; display: none;">
				<!--<div class="weui-mask"></div>-->
			</div>
			<!--<img id="qrcode" class="longtap" src="/resource/front/images/forward/money.png" />-->
			<div class="get-money" style="opacity: 1; display: none;">
				<div class=" alert-img-box">
					<div id="">
						<img src="/resource/front/images/forward/money.png">
					</div>
					<div class="p">
						<p>恭喜您</p>
						<p>您得到<span id="lcb"></span>个LCB奖励</p>
						<p style="margin-bottom: 0rem; font-size: 0.35rem;">快来领取吧！</p>
					</div>
				</div>
			</div>
		</div>

	</div>

</body>
<script type="text/javascript" src="/resource/front/js/jquery.min.js"></script>
<script type="text/javascript" src="/resource/front/css/mobile/mui.js"></script>
<script type="text/javascript" src="/resource/front/css/mobile/ykp.js"></script>
<script type="text/javascript">
	mui.ready(function() {
		if(!ykp.getLocalStorage('userInfo')){
			window.location.href = 'login';
		}
		this.init()
		
	})

	function init() {
		var uid = JSON.parse(ykp.getLocalStorage('userInfo')).uid;
		console.log(JSON.parse(ykp.getLocalStorage('userInfo')))
		ykp.doAjax({
			url: "/api/user/balance",
			method: "post",
			data: {
				uid: uid
			},
			success: function(res) {
				console.log(res);
				$('#earn').text(res.data.earn || 0);
				$('#all_money').text(res.data.all_money || 0 )
			}
		})

	}
</script>


</html>